<?php 

	$dsn = "mysql: host=localhost;dbname=tk173;charset=utf8";
	$pdo = new PDO($dsn,"root","root");
	$id = $_POST['id'];
	$sql = "select id,name from area where fid =$id";
	$stat = $pdo->query($sql);
	$datas = $stat->fetchAll(2);
	echo json_encode($datas);
 ?>